#ifndef FRAMEWIDGET_HXX
#define FRAMEWIDGET_HXX

#include <QWidget>
#include <QPaintEvent>

class FrameWidget : public QWidget
{
    Q_OBJECT
public:
    explicit FrameWidget(QWidget *parent = nullptr);
    virtual void paintEvent(QPaintEvent *event);
    void setImage(const uchar* image, int width, int height);
signals:

public slots:
private:
    const uchar* _imageData;
    int _imageWidth;
    int _imageHeight;
};

#endif // FRAMEWIDGET_HXX
